Skip to main content

Edit Permission

AutomatR.OneDriveApp.Activities.EditPermission

The "Edit Permission" activity in UiPath is part of the OneDrive activities package, allowing users to automate the modification of permissions (access rights) for files or folders in Microsoft OneDrive. This activity is particularly useful when it comes to managing and controlling access to shared resources within OneDrive.

Properties

NameDescription
Input
PathSpecifies the path of the file or folder for which the permissions are to be edited within OneDrive. It represents the location of the resource within the user's OneDrive account. String variables containing the file or folder path.
RolesSpecifies the roles or permissions to be assigned to the user or users for the specified file or folder. Roles can include "read" (view-only) or "write" (modify) permissions. String variables containing the role(s) to be assigned. Examples: "read," "write," or a combination like "read,write."
Misc
Display NameProvides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variables containing the desired display name.
Optional
DelaySpecifies the amount of time (in milliseconds) to wait before executing the "Download File" activity. This can be useful for handling synchronization issues. Integer variables containing the delay duration. Ex.: If the amount of time is 1000 milliseconds or 1 sec, i.e. 1.
Output
ResultOutputs the result of the "Edit Permission" operation, indicating whether the permission editing was successful or any encountered errors. Variables of relevant types (e.g., Boolean variables) to store the operation result.

How to use:

  1. Drag and drop the "Edit Permission" activity onto the workflow.
  2. Configure the properties by specifying the path of the file or folder to be edited and defining the roles or permissions to be assigned.
  3. Optionally, configure the delay and customize the display name.
  4. Execute the workflow to edit the permissions for the specified file or folder within OneDrive.

Example: Consider an example where the "Edit Permission" activity is used to grant "read" and "write" permissions to a shared document named "project_report.docx" within the "SharedDocuments" directory in OneDrive:

Edit Permission:
Display Name: "Grant Document Permissions"
Path: "/Documents/SharedDocuments/project_report.docx"
Roles: "read,write"
Result: isEditSuccessful

In this example, the activity edits the permissions for the document "project_report.docx," granting both "read" and "write" permissions. The result of the operation (success or failure) is stored in the Boolean variable "isEditSuccessful" for further handling in the workflow.